You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLMtxVec Class > TOpenCLMtxVec Methods > RealPart Method > TOpenCLMtxVec.RealPart Method ([In] TOpenCLMtxVec)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLMtxVec.RealPart Method ([In] TOpenCLMtxVec)

Gets real part of complex object values.

Syntax
C#
Visual Basic
public TOpenCLMtxVec RealPart([In] TOpenCLMtxVec Vec);

The method method gets the real part of a complex object Vec and stores the real results in the calling object. Size and TOpenCLBase.ComplexComplexproperties of the calling object are set implicitly to match Vec object. Vec TOpenCLBase.ComplexComplexproperty must be true otherwise an exception is raised.

var a,b: TOpenCLVector; begin CreateIt(a,b); try a.CopyCplxFromArray(TSingleArray.Create(1,2,3,4)); // = [1+2i, 3+4i] b.RealPart(a); // b = [1,3] finally FreeIt(a,b); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!